//
//  SJTimeSelectDatePickerView.h
//  Init
//
//  Created by zhaoshijie on 24/01/2018.
//  Copyright © 2018 zhaoshijie. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^SureBlock)(long timeStamp);

@interface SJTimeSelectDatePickerView : UIControl

#pragma mark --------------创建控件--------------

//  背景试图
@property(nonatomic,strong)UIView *bgView;
//  标题背景试图
@property(nonatomic,strong)UIView *titleBgView;
//  取消
@property(nonatomic,strong)UIButton *cancelButton;
//  确定
@property(nonatomic,strong)UIButton *sureButton;
//  标题
@property(nonatomic,strong)UILabel *titleLabel;
//  时间选择
@property(nonatomic,strong)UIDatePicker *datePicker;

//  确定
@property(nonatomic,copy)SureBlock sureBlock;


#pragma mark --------------方法--------------


/**
 添加的方法
 */
- (void)addViewToKeyWindow;


/**
 设置当前时间
 
 @param timeStamp 当前的时间戳
 */
- (void)settingDatePickerWithmNewTimeStamp:(long)timeStamp;


/**
 设置最大时间
 
 @param timeStamp 最大的时间戳
 */
- (void)settingDatePickerWithmMaxTimeStamp:(long)timeStamp;


/**
 设置最小时间
 
 @param timeStamp 最小的时间戳
 */
- (void)settingDatePickerWithmMinTimeStamp:(long)timeStamp;


@end
